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