 
         @OriginalParentModel.collection.insert [docWithChildrenFromOldVersion], (err, raw) =>
           assert.equal err, null
-          docs = raw.ops || raw
+          docs = raw.ops || raw.insertedIds
           @docId = docs[0]._id
           done()
 


        OriginalModel.collection.insert [docEncryptedWithOldVersion, docEncryptedWithOldVersion2], (err, raw) =>
          assert.equal err, null
          docs = raw.ops || raw
          @docId = docs[0]._id
          @doc2Id = docs[1]._id
          OriginalModel.findById @docId, (err, doc) ->

      assert.equal err, null
      ctForSwap = doc2._ct.buffer
      BasicEncryptedModel.update({_id: @testDoc._id}, {$set: _ct: doc2._ct}).exec (err, raw) =>
        n = raw.n || raw.modifiedCount
        assert.equal err, null
        assert.equal n, 1
        BasicEncryptedModel.findOne(_id: @testDoc._id).exec (err, doc) =>
