Would be good to have tests for the more complicated aggregate functions too like count distinct, stddev, etc.