fix test_reduce