diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php
index d0d8b36..cc97627 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php
@@ -436,6 +436,24 @@ protected function testSortRange() {
    * Tests dotted path matching.
    */
   protected function testDotted() {
+    // Create a new entity here so we don't interfere with the rest of the test
+    // methods.
+    $entity = entity_create('config_query_test', array(
+      'label' => $this->randomName(),
+      'id' => '6',
+      'array' => array(9),
+    ));
+    $this->entities[] = $entity;
+    $entity->enforceIsNew();
+    $entity->save();
+
+    // Try to match the value of a top-level array property.
+    $this->queryResults = $this->factory->get('config_query_test')
+      ->condition('array', 9)
+      ->execute();
+    $this->assertResults(array('6'));
+
+    // Continue with dotted path matching.
     $this->queryResults = $this->factory->get('config_query_test')
       ->condition('array.level1.*', 1)
       ->execute();
