add tests for ireduce