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


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



  it 'find should fail if non-authenticated field is modified directly', (done) ->
    AuthenticatedFieldsModel.update({_id: @testDocAF._id}, {$set: bool: false}).exec (err, raw) =>
      n = raw.n || raw.modifiedCount
      assert.equal err, null
      assert.equal n, 1
      AuthenticatedFieldsModel.findById @testDocAF._id, (err, doc) =>
