Implement UserRepository

Implement UserRepository.
Write appropriate unit test.