         @db.writeSnapshot @cName, @docName, {v:6}, (err) =>
           throw Error(err) if err
           @db.getSnapshot @cName, @docName, (err, storedData) ->
+            throw Error(err) if err
             assert.equal storedData.data, null
             assert.equal storedData.type, null
             assert.equal storedData.v, 6
             done()
 
-    if db.bulkGetSnapshot then describe 'bulk get snapshot', ->
+    if !noBulkGetSnapshot then describe 'bulk get snapshot', ->
       it 'does not return missing documents', (done) ->
         @db.bulkGetSnapshot {testcollection:[@docName]}, (err, results) ->
           throw Error(err) if err

        @db.writeSnapshot @cName, @docName, data, (err) =>
          throw Error(err) if err
          @db.bulkGetSnapshot {testcollection:[@docName]}, (err, results) =>
            expected = {testcollection:{}}
            expected.testcollection[@docName] = data
            assert.deepEqual results, expected
            done()


        @db.writeSnapshot @cName, @docName, data, (err) =>
          throw Error(err) if err
          @db.bulkGetSnapshot {testcollection:['does not exist', @docName, 'also does not exist']}, (err, results) =>
            throw Error(err) if err
            expected = {testcollection:{}}
            expected.testcollection[@docName] = data
            delete results[@cName][@docName].docName
            assert.deepEqual results, expected
            done()

