tests on reduce