Moved instance related code from get_node_info to a new method.

- Moved instance related code from get_node_info to a new method "get_instance_node_info"
- Added spec tests for the new method "get_instance_node_info"