added nested_aggregation unit test