Fix test runner with phantomjs and dojo loader.