Add test for "average" reducer