[loader] Fail when requiring modules with failing tests