write user model tests