A test-element is created with document.createElement and appended to a shadow root that has a scoped registry.