unit testing parse tree