Test: add test for sorted reduce by collector