diff --git a/test/unit/custom-style-async-import.js b/test/unit/custom-style-async-import.js
index be7293a937..a1d21a7e66 100644
--- a/test/unit/custom-style-async-import.js
+++ b/test/unit/custom-style-async-import.js
@@ -1,6 +1,6 @@
import { Polymer } from '../../lib/legacy/polymer-fn.js';
-const $_documentContainer = document.createElement('div');
+const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = `
`;
-document.head.appendChild($_documentContainer);
+document.head.appendChild($_documentContainer.content);
diff --git a/test/unit/custom-style.html b/test/unit/custom-style.html
index c77bab220b..3bfece8e0e 100644
--- a/test/unit/custom-style.html
+++ b/test/unit/custom-style.html
@@ -27,7 +27,7 @@
See: https://github.com/Polymer/polymer-modulizer/issues/154
-->