fix reduce return value
simple reduce test