Pulled import as a separate part because its async and the rest (replacing variables and custom elements) can still be kept sync)
Created test for import followed by render