add tests for merge
fix tapemerge signature