diff --git tests/VersioncontrolTestCase.test tests/VersioncontrolTestCase.test
index 69183f2..72396b5 100644
--- tests/VersioncontrolTestCase.test
+++ tests/VersioncontrolTestCase.test
@@ -47,11 +47,13 @@ abstract class VersioncontrolTestCase extends DrupalWebTestCase {
     $magic_modules = $this->determineBackends();
     // load crucial required modules in addition to requested ones.
     $arg_modules = func_get_args();
-    $modules = array_merge(array('dbtng', 'autoload', 'versioncontrol'), $arg_modules, $magic_modules);
+    $modules = array_merge(array('dbtng', 'autoload', 'versioncontrol', 'views'), $arg_modules, $magic_modules);
     call_user_func_array(array('VersioncontrolTestCase', 'parent::setUp'), $modules);
     // parent::setUp($modules);
 
-    // init dbtng so it actually works.
+    // hook_init() is needed to be able to use dbtng, simpletest do not
+    // call it, only a normal GET will call it automatically, but for
+    // these tests a GET is not really needed, so call it manually
     dbtng_init();
 
     if (!($this->useBackends & (self::BACKENDS_NONE))) {
@@ -60,6 +62,16 @@ abstract class VersioncontrolTestCase extends DrupalWebTestCase {
     }
   }
 
+  protected function tearDown() {
+    // For dbtng the prefix is part of the data associated with the
+    // connection, so, when simpletest makes a new prefix to run another
+    // test method, dbtng do not notice it is a _new_ connection, so
+    // removing by hand force it to open a new one with the right changed
+    // prefix.
+    Database::removeConnection('default');
+    parent::tearDown();
+  }
+
   /**
    * Set up the testing environment with the appropriate set of backends for the
    * current test run.
@@ -115,4 +127,4 @@ abstract class VersioncontrolTestCase extends DrupalWebTestCase {
       $this->testBackend = versioncontrol_get_backends('test');
     }
   }
-}
\ No newline at end of file
+}
