node class is now fully functional. Added test cases for node class.