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


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