Added GetNodeByVirtualId, GetLinkByVirtualId, and ReplaceNode as utility functions for managing rspecs.