added test to user model