aggregation pipelines and tests - first round