Add nested aggregation test