Added a comparison method for Node. Simplified tests using it.