diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceSettingsTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceSettingsTest.php
index dbbbe44..5d36104 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceSettingsTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceSettingsTest.php
@@ -20,7 +20,7 @@
  */
 class EntityReferenceSettingsTest extends KernelTestBase {
 
-  use EntityReferenceTestTrait;
+  use EntityReferenceTestTraits;
 
   /**
    * {@inheritdoc}
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 9ca309f..f902c86 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -12,6 +12,7 @@
 use Drupal\Core\StreamWrapper\PublicStream;
 use Drupal\Core\Test\TestRunnerKernel;
 use Drupal\simpletest\Form\SimpletestResultsForm;
+use Drupal\simpletest\TestBase;
 use Symfony\Component\HttpFoundation\Request;
 
 $autoloader = require_once __DIR__ . '/../../autoload.php';
@@ -73,8 +74,11 @@
   exit;
 }
 
-$test_list = simpletest_script_get_test_list();
-
+//$test_list = simpletest_script_get_test_list();
+$test_list = [
+  'Drupal\field\Tests\EntityReference\EntityReferenceSettingsTest',
+  'Drupal\config\Tests\ConfigCRUDTest'
+];
 // Try to allocate unlimited time to run the tests.
 drupal_set_time_limit(0);
 simpletest_script_reporter_init();
@@ -570,6 +574,9 @@ function simpletest_script_execute_batch($test_classes) {
             // Exit repeat loop immediately.
             $args['repeat'] = -1;
           }
+          // Insert a fail for xml results.
+          TestBase::insertAssert($child['test_id'], $child['class'], FALSE, 'Testing using run-tests.sh did not complete due to a fatal error.', 'run-tests.sh check');
+          simpletest_script_reporter_display_summary($child['class'], ['#pass' => 0, '#fail' => 1, '#exception' => 0, '#debug' => 0]);
         }
         // Free-up space by removing any potentially created resources.
         if (!$args['keep-results']) {
