diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/CrudTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/CrudTest.php
index 3383f94..525ca33 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/CrudTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/CrudTest.php
@@ -7,12 +7,12 @@
 
 namespace Drupal\rdf\Tests;
 
-use Drupal\simpletest\WebTestBase;
+use Drupal\simpletest\DrupalUnitTestBase;
 
 /**
  * Tests the RDF mapping CRUD functions.
  */
-class CrudTest extends WebTestBase {
+class CrudTest extends DrupalUnitTestBase {
 
   /**
    * Modules to enable.
@@ -29,6 +29,12 @@ public static function getInfo() {
     );
   }
 
+  public function setUp() {
+    parent::setUp();
+    // Install modules.
+    $this->enableModules(self::$modules);
+  }
+
   /**
    * Tests inserting, loading, updating, and deleting RDF mappings.
    */
diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php
index 362a416..f057bf4 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/GetRdfNamespacesTest.php
@@ -7,12 +7,12 @@
 
 namespace Drupal\rdf\Tests;
 
-use Drupal\simpletest\WebTestBase;
+use Drupal\simpletest\DrupalUnitTestBase;
 
 /**
  * Tests for RDF namespaces declaration with hook_rdf_namespaces().
  */
-class GetRdfNamespacesTest extends WebTestBase {
+class GetRdfNamespacesTest extends DrupalUnitTestBase {
 
   /**
    * Modules to enable.
diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/MappingHookTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/MappingHookTest.php
index eb1340e..d28abfa 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/MappingHookTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/MappingHookTest.php
@@ -7,12 +7,12 @@
 
 namespace Drupal\rdf\Tests;
 
-use Drupal\simpletest\WebTestBase;
+use Drupal\simpletest\DrupalUnitTestBase;
 
 /**
  * Tests the RDF mapping hook.
  */
-class MappingHookTest extends WebTestBase {
+class MappingHookTest extends DrupalUnitTestBase {
 
   /**
    * Modules to enable.
@@ -21,6 +21,13 @@ class MappingHookTest extends WebTestBase {
    */
   public static $modules = array('rdf', 'rdf_test', 'field_test');
 
+
+  public function setUp() {
+    parent::setUp();
+    // Install modules.
+    $this->enableModules(self::$modules);
+  }
+
   public static function getInfo() {
     return array(
       'name' => 'RDF mapping hook',
diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/RdfMappingEventTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/RdfMappingEventTest.php
index 7a7a7b5..2f87472 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/RdfMappingEventTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/RdfMappingEventTest.php
@@ -13,7 +13,7 @@
 use Drupal\rdf\SiteSchema\BundleSchema;
 use Drupal\rdf\SiteSchema\SiteSchema;
 use Drupal\rdf\SiteSchema\SiteSchemaManager;
-use Drupal\simpletest\WebTestBase;
+use Drupal\simpletest\DrupalUnitTestBase;
 use Symfony\Component\EventDispatcher\EventDispatcher;
 
 /**
@@ -21,14 +21,14 @@
  *
  * This is implemented as a WebTest because it depends on entity info.
  */
-class RdfMappingEventTest extends WebTestBase {
+class RdfMappingEventTest extends DrupalUnitTestBase {
 
   /**
    * Modules to enable.
    *
    * @var array
    */
-  public static $modules = array('rdf', 'rdf_test_mapping', 'entity_test');
+  public static $modules = array('system', 'rdf', 'rdf_test_mapping', 'entity_test');
 
   public static function getInfo() {
     return array(
@@ -38,6 +38,15 @@ public static function getInfo() {
     );
   }
 
+  public function setUp() {
+    parent::setUp();
+    // Install necessary dependencies.
+    $this->installSchema('system', 'url_alias');
+    $this->installSchema('system', 'cache');
+    $this->installSchema('system', 'cache_tags');
+    $this->enableModules(array('rdf'));
+  }
+
   /**
    * Test that other modules can define incoming type mappings.
    */
diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/SiteSchemaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/SiteSchemaTest.php
index 0cfe07f..1b30d10 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/SiteSchemaTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/SiteSchemaTest.php
@@ -9,19 +9,25 @@
 
 use Drupal\rdf\SiteSchema\BundleSchema;
 use Drupal\rdf\SiteSchema\SiteSchema;
-use Drupal\simpletest\WebTestBase;
+use Drupal\simpletest\DrupalUnitTestBase;
 
 /**
  * Tests for RDF namespaces XML serialization.
  */
-class SiteSchemaTest extends WebTestBase {
+class SiteSchemaTest extends DrupalUnitTestBase {
 
   /**
    * Modules to enable.
    *
    * @var array
    */
-  public static $modules = array('rdf', 'entity_test');
+  public static $modules = array('system', 'rdf', 'entity_test');
+
+  public function setUp() {
+    parent::setUp();
+    // Install necessary dependencies.
+    $this->installSchema('system', 'url_alias');
+  }
 
   public static function getInfo() {
     return array(
