Fixes many formatting issues in aggregation tests