diff --git a/js_example/js_example.routing.yml b/js_example/js_example.routing.yml
index 603e5df..ba86225 100755
--- a/js_example/js_example.routing.yml
+++ b/js_example/js_example.routing.yml
@@ -4,7 +4,7 @@ js_example.info:
     _title: 'JavaScript Example Information'
     _controller: '\Drupal\js_example\Controller\JsExampleController::info'
   requirements:
-    _access: 'TRUE'
+    _permission: 'access content'
 
 js_example.weights:
   path: '/examples/js_example/weights'
@@ -12,7 +12,7 @@ js_example.weights:
     _title: 'JS Example: see weighting in action'
     _controller: '\Drupal\js_example\Controller\JsExampleController::getJsWeightImplementation'
   requirements:
-    _access: 'TRUE'
+    _permission: 'access content'
 
 js_example.accordion:
   path: '/examples/js_example/accordion'
@@ -20,4 +20,4 @@ js_example.accordion:
     _title: 'JS Example: jQuery UI accordion'
     _controller: '\Drupal\js_example\Controller\JsExampleController::getJsAccordionImplementation'
   requirements:
-    _access: 'TRUE'
+    _permission: 'access content'
diff --git a/js_example/src/Tests/JsExampleTest.php b/js_example/src/Tests/JsExampleTest.php
index a172e19..4119fba 100644
--- a/js_example/src/Tests/JsExampleTest.php
+++ b/js_example/src/Tests/JsExampleTest.php
@@ -26,6 +26,13 @@ class JsExampleTest extends WebTestBase {
   public static $modules = array('js_example');
 
   /**
+   * Profile to install.
+   *
+   * @var string
+   */
+  protected $profile = 'minimal';
+
+  /**
    * Test all the paths defined by our module.
    */
   public function testJsExample() {
@@ -35,8 +42,16 @@ class JsExampleTest extends WebTestBase {
       'examples/js_example/accordion',
     );
     foreach ($paths as $path) {
+      // Under anonymous user it will 403.
+      if ($this->loggedInUser) {
+        $this->drupalLogout();
+      }
+      $this->drupalGet($path);
+      $this->assertResponse(403, 'Anonymous visit: Failed ' . $path);
+      // And under logged in it will 200.
+      $this->drupalLogin($this->drupalCreateUser(['access content']));
       $this->drupalGet($path);
-      $this->assertResponse(200, 'Visited ' . $path);
+      $this->assertResponse(200, 'User visit: Access ' . $path);
     }
   }
 
