Added test for aggregation command line tool