Added a _getNode function and associated tests