Added additional checking to complexMerge test case