added merge_nodes test