Added JUnit test for Node class.