extended merge_graph unit test