Minor refactoring
Fixed mingle unittests
Extracted erroring handling for retrieving node value