Add authentication_helper.rb and move repetitive rspec code