added nodes_to_range() method and the corresponding test case