 
   # Cache Test
   describe "split time; apply count; apply added", ->
-    it "should have the same results for different drivers", testEquality {
-      drivers: ['mySqlCached', 'mySql']
-      query: [
+    setUpQuery = [
         { operation: 'filter', type:'within', attribute:'time', range: [ new Date(Date.UTC(2013, 2-1, 26, 0, 0, 0)), new Date(Date.UTC(2013, 2-1, 27, 0, 0, 0))] }
         { operation: 'split', name: 'Time', bucket: 'timePeriod', attribute: 'time', period: 'PT1H', timezone: 'Etc/UTC' }
         { operation: 'apply', name: 'Count', aggregate: 'sum', attribute: 'count' }
         { operation: 'apply', name: 'Added', aggregate: 'sum', attribute: 'added' }
         { operation: 'combine', combine: 'slice', sort: { compare: 'natural', prop: 'Time', direction: 'ascending' } }
       ]
-    }
-
-  describe "[cache tests on] split time; apply count; apply added", ->
-    before -> allowQuery = false
+
+    before (done) ->
+      driverFns.mySqlCached(setUpQuery, (err, result) ->
+        throw err if err?
+        allowQuery = false
+        done()
+        return
+      )
+
     after -> allowQuery = true
 
     describe "split time; apply count", ->


    # Cache Test 2
  describe "filter; split time; apply count; apply added", ->
    it "should have the same results for different drivers", testEquality {
      drivers: ['mySqlCached', 'mySql']
      query: [
        { operation: 'filter', type: 'and', filters: [
          { operation: 'filter', attribute: 'language', type: 'is', value: 'en' }
          { operation: 'filter', type:'within', attribute:'time', range: [ new Date(Date.UTC(2013, 2-1, 26, 0, 0, 0)), new Date(Date.UTC(2013, 2-1, 27, 0, 0, 0))] }

      { operation: 'combine', combine: 'slice', sort: { compare: 'natural', prop: 'Count', direction: 'descending' }, limit: 5 }
    ]

    before (done) ->
      driverFns.mySqlCached(setUpQuery, (err, result) ->
        throw err if err?
        allowQuery = false
        done()
        return
      )
