Corrected node value access
Updated unit tests