[JSTesting] Refactor mw.loader test to be more extendable