Modified test_reduction