Added Test cases for the Node and some javadocs.