Refactor user model tests