better test coverage of User model