added new tests and for user model.