tearDown() {
    stubs.reset();
    dispose(moduleLoader);

    // Ensure that the module manager was created.
    assertNotNull(ModuleManager.getInstance());
    activeModuleManager.reset();

    // tear down the module loaded flag.
    modA1Loaded = false;

    // Remove all the fake scripts.
    const scripts = googArray.clone(dom.getElementsByTagName(TagName.SCRIPT));
    for (let i = 0; i < scripts.length; i++) {
      if (scripts[i].src.indexOf('testdata') != -1) {
        dom.removeNode(scripts[i]);
      }
    }
  }
@suppress {undefinedVars} suppression added to enable type checking