Added unit test for vertical merge