updated user model unit testing