adding unit test coverage for User model.