add tests gor aggregation