Init: Stop QUnit while asynchronously loading unit test dependencies

Fixes gh-7790