Test Refactoring findExistingNodes()