fix failing test, limit/max should be configured in MongoDB prior to grouping in aggregation pipeline to obtain correctly ordered results