Refactored various tests to utilities.rb
Changed form_for to form_tag wih corresponding chnges to params hash in sessionscontroller