accessing XHR in tests should fail