tests for user model done