added test for user model