Fixed failing aggregation tests on MySQL