Align changes with existing tests, add new SUM and MEDIAN test