add unit test for problematic merge() scenario (#19)