repeating nodes merge test cases
throw exception on ambiguous merge