assert_equals(xhr.response, expectedResponse) // null comparison, basically
                    }
                    assert_equals(xhr.response, xhr.response,
                                  "Response should be cached")
                    test.done()
                })
            }
        }
        xhr.send(data)
      }
      // no data
      makeTest("", null, 'json response with no data: response property is null')
      // malformed
      makeTest('{"test":"foo"', null, 'json response with malform