This commit adds a set of unit tests for the userdbs app. Some tests will fail because a refactoring to signals comes with the next commit.