tests for node class