fix a pg aggregate test defect