tests not relying on order by?

```javascript
// check snapshots for job 1
var snapshots = _.filter(result, {job_id: 1});

// there should be a single snapshot with a processed value
expect(_.reject(snapshots, {processed: null}).length).to.equal(1);

// there should be a single snapshot entry with 2 retries remaining and it should not have
// a processed value
expect(_.filter(snapshots, {processed: null, 'retriesRemaining': 2}).length).to.equal(1);
```