Fix reduce algorithm

So I fixed the new test, however `testReduceWithMaxUdpPacketSplitInTwoPacket` now fails, and I am not sure what you were testing. Can you have a look please ?