A better test would be to test the entire query result with assert.deepEqual() and pass it an array of objects that are similar to what you expect.