Add reducePair tests. Close #20