added test coverage to user model
added test coverage to user model