Unit tests for node class.