added testing to user model