             my_param: 'trolling'
         quest options, (err, resp, body) ->
           assert not err, "Has error #{err}"
-          assert.equal resp.statusCode, 200, "Status code should be 200, is #{resp.statusCode}"
-          assert.equal resp.headers.my_param, 'trolling', "Parameter should be trolling, is #{resp.headers.my_param}"
+          assert.equal resp?.statusCode, 200, "Status code should be 200, is #{resp?.statusCode}"
+          assert.equal resp?.headers?.my_param, 'trolling', "Parameter should be trolling, is #{resp?.headers?.my_param}"
           done safe_err err
 
       it "doesn't follow redirects when disabled", (done) ->

          json: true
        quest options, (err, resp, body) ->
          assert not err, "Has error #{err}"
          assert.equal resp.statusCode, 200, "Status code should be 200, is #{resp.statusCode}"
          assert.equal body['user-agent'], default_user_agent
          done safe_err err

      it 'allows you to modify the headers', (done) ->

          json: true
        quest options, (err, resp, body) ->
          assert not err, "Has error #{err}"
          assert.equal resp?.statusCode, 200, "Status code should be 200, is #{resp?.statusCode}"
          assert.equal body?.url, "http://httpbin.org/get"
          done safe_err err

      it "doesn't follow relative redirects when disabled", (done) ->
