add test for recursive aggregation