Fix the mw.loader when running test with a file:// URL