added test case to TestMergeNode.java