public function preAutoloadDump(Event $event) {
    $root = $this->getBuildRoot();
    $autoload = $this->package->getDevAutoload();
    $autoload['psr-0']["Drupal\\Tests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\KernelTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalTests"] = $root . "/core/tests";
    $autoload['psr-0']["Drupal\\FunctionalJavascriptTests"] = $root . "/core/tests";
    $autoload['psr-4']["Drupal\\simpletest\\"] = $root . "/core/modules/simpletest/src";
    $this->package->setDevAutoload($autoload);
  }