I would unwrap these tests and do something like:

```javascript
// stop qunit from running the tests until everything is in the page
QUnit.config.autostart = false;

$( document ).on( "pageinit", function(){ 
  QUnit.start();
});
```