added test coverage for User model