Change merge_nodes code and test case
Docstring changes.
merge_nodes docstring change