moving comparison tool code into Node.Test