refactored UserRepositorySpec to improve readability