Async rendering, loading scripts; mysterious test failure for sample.xml though