 
       UnsignedModel.collection.insert [plainDoc, plainDoc2], (err, raw) =>
         assert.equal err, null
-        docs = raw.ops || raw
+        docs = raw.ops || raw.insertedIds
         @docId = docs[0]._id
         @doc2Id = docs[1]._id
         done()


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


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