added unit tests for node handlers