Added unit test for merge/split.