Fixed bug in get_node_names
Added test for get_node_names and get_nodes_by_name