added test for user model authenticate method