Added tests for the node class and node functions