merging receiver: fix ordering bug and improve test coverage