Added user database unit tests