Add tests for NodeHandler