Write user model tests