Additional unit test for reduce