This was the _generateXHRRequest method call before because you can't stub out a read-only global in the tests.