             done()
 
       it 'adds an element when it matches', (done) ->
-        @collection.query {'data.x':5}, opts, (err, emitter) =>
+        @collection.query {'x':5}, opts, (err, emitter) =>
           emitter.on 'add', (data, idx) =>
             assert.deepEqual data, {docName:@docName, v:1, data:{x:5}, type:otTypes.json0.uri}
             assert.strictEqual idx, 0



      it 'does not emit receive events to a destroyed query', (done) ->
        @collection.query {'data.x':5}, opts, (err, emitter) =>
          emitter.on 'add', -> throw new Error 'add called after destroy'
          emitter.on 'remove', -> throw new Error 'remove called after destroy'


          @create2 '_p4', {x:5, i:1.5}
      
      it 'will remove an element from the set', (done) ->
        @collection.query {$query:{'x':5}, $orderby:{'i':1}}, {poll:true}, (err, emitter) =>

          emitter.once 'remove', (data, idx) ->
            assert.strictEqual idx, 0
