Fixed UserRepository and UserRepositoryFunctionalTest.