diff --git a/tests/views_analyze.test b/tests/views_analyze.test
index f349f21..b98a017 100644
--- a/tests/views_analyze.test
+++ b/tests/views_analyze.test
@@ -1,10 +1,12 @@
 <?php
+module_load_include('test', 'views', 'tests/views_query');
+
 /**
  * @file
  * Tests the views analyse system.
  */
 
-class ViewsAnalyzeTest extends viewsSqlTest {
+class ViewsAnalyzeTest extends ViewsSqlTest {
   public static function getInfo() {
     return array(
       'name' => 'Views Analyze',
@@ -44,4 +46,4 @@ class ViewsAnalyzeTest extends viewsSqlTest {
     // This redirects the user back to the main views edit page.
     $this->drupalPost(NULL, array(), t('Ok'));
   }
-}
\ No newline at end of file
+}
diff --git a/tests/views_exposed_form.test b/tests/views_exposed_form.test
index 31c3636..bb95c47 100644
--- a/tests/views_exposed_form.test
+++ b/tests/views_exposed_form.test
@@ -1,4 +1,6 @@
 <?php
+module_load_include('test', 'views', 'tests/views_query');
+
 /**
  * @file
  * Test exposed forms.
@@ -60,14 +62,14 @@ class ViewsExposedFormTest extends ViewsSqlTest {
     $this->drupalGet('admin/build/views/nojs/config-item/test_exposed_admin_ui/default/filter/type');
     // Be sure that the button is called exposed
     $this->helperButtonHasLabel('edit-options-expose-button-button', t('Expose'));
-    
-    
+
+
     // Check the validations of the filter handler.
     $edit = array();
     $edit['options[expose][identifier]'] = '';
     $this->drupalPost(NULL, $edit, t('Update'));
     $this->assertText(t('The identifier is required if the filter is exposed.'));
-    
+
     $edit = array();
     $edit['options[expose][identifier]'] = 'value';
     $this->drupalPost(NULL, $edit, t('Update'));
@@ -90,4 +92,3 @@ class ViewsExposedFormTest extends ViewsSqlTest {
     $this->assertFieldById('edit-options-expose-label', '', t('Take sure a label field is shown'));
   }
 }
-
diff --git a/tests/views_view.test b/tests/views_view.test
index 98eb171..60972d5 100644
--- a/tests/views_view.test
+++ b/tests/views_view.test
@@ -1,4 +1,6 @@
 <?php
+module_load_include('test', 'views', 'tests/views_query');
+
 /**
  * Test the view class.
  */
@@ -60,7 +62,7 @@ class viewsViewTest extends ViewsSqlTest {
   }
 
   function testValidate() {
-    // Test a view with multiple displays. 
+    // Test a view with multiple displays.
     // Validating a view shouldn't change the active display.
     // @todo: Create an extra validation view.
     $view = $this->view_test_destroy();
@@ -274,4 +276,4 @@ class viewsViewTest extends ViewsSqlTest {
 
     return $view;
   }
-}
\ No newline at end of file
+}
