add some tests for pg aggregate function support