Added tests for the UserRepository