Refactored UserRepositoryTest