diff --git a/src/Tests/PathautoUnitTest.php b/src/Tests/PathautoUnitTest.php
index f07835c..a79eb8c 100644
--- a/src/Tests/PathautoUnitTest.php
+++ b/src/Tests/PathautoUnitTest.php
@@ -58,7 +58,7 @@ class PathautoUnitTest extends KernelTestBase {
     ConfigurableLanguage::createFromLangcode('fr')->save();
 
     $this->installSchema('node', array('node_access'));
-    $this->installSchema('system', array('url_alias', 'sequences', 'router'));
+    $this->installSchema('system', array('sequences', 'router'));
 
     $type = NodeType::create(['type' => 'page']);
     $type->save();
@@ -460,6 +460,24 @@ class PathautoUnitTest extends KernelTestBase {
   }
 
   /**
+   * Tests the alias created for a node with language Not Applicable.
+   */
+  public function testLanguageNotApplicable() {
+    $pattern = $this->createPattern('node', '/content/[node:title]', -1);
+    $pattern->save();
+
+    $entity = \Drupal::entityManager()->getStorage('node')->create([
+      'title' => 'Sample page',
+      'type' => 'page',
+      'langcode' => LanguageInterface::LANGCODE_NOT_APPLICABLE,
+    ]);
+    $entity->save();
+
+    $alias = \Drupal::service('pathauto.alias_storage_helper')->loadBySource('/node/' . $entity->id());
+    $this->assertEqual($alias['langcode'], LanguageInterface::LANGCODE_NOT_SPECIFIED, 'PathautoGenerator::createEntityAlias() adjusts the alias langcode from Not Applicable to Not Specified.');
+  }
+
+  /**
    * Creates a node programmatically.
    *
    * @param array $settings
@@ -480,4 +498,5 @@ class PathautoUnitTest extends KernelTestBase {
 
     return $node;
   }
+
 }
