Add regression test for hash aggregation.