More SUM/AVG tests, add support for MIN/MAX.