added tests to sessions_controllers_spec.rb