adding test for the authenticate method in user_spec.rb