fixing broken spec test for invalid_response_spec.rb