fixed bug in merge_graph unit test