I think that this would also cause the XHR document to not have a registry. This test would be better if it loaded an HTML document, which typically does have a registry, and confirmed that it did not have a registry because it was loaded via XHR.