This tests that the JavaScript wrapper objects of shadow DOM objects are not prematurely garbage collected.