Tests for Node Class

tests for node class and
fixing bugs