Bug #124: case when merge does not end the stream

test case for the bug #124