add node assert methods
Merge pull request #7 from ianstormtaylor/add/node

add node assert methods and tests