added test and fix for getting none existing nodes