diff --git a/src/Tests/PathautoNodeWebTest.php b/src/Tests/PathautoNodeWebTest.php
index 83a3fb5..851751f 100644
--- a/src/Tests/PathautoNodeWebTest.php
+++ b/src/Tests/PathautoNodeWebTest.php
@@ -253,4 +253,26 @@ class PathautoNodeWebTest extends WebTestBase {
     $this->assertNull(\Drupal::keyValue('pathauto_state.node')->get($node->id()), 'Pathauto state was deleted');
   }
 
+  /**
+   * Tests that patterns can coexist with routes with arguments.
+   */
+  public function testPatternMatchingDynamicRoute() {
+    $this->drupalLogin($this->rootUser);
+
+    // Create a pattern for nodes that matches with a view path
+    // defined at pathauto_node test module.
+    $this->createPattern('node', '/node/[node:title]', -1);
+
+    // Create an article.
+    $edit = array(
+      'title[0][value]' => '1',
+    );
+    $this->drupalPostForm('node/add/article', $edit, t('Save and publish'));
+
+    // Check that the alias exists and works.
+    $this->assertAliasExists(array('alias' => '/node/1'));
+    $this->drupalGet('node/1');
+    $this->assertResponse(200);
+  }
+
 }
