Karma does not need a rootElement to run the tests

You don't need the document.write or App.rootElement set for karma to run your test.