adding test code.
adding test code for nodes
update the junit for adding assert.