The parser tests currently only verify that the parser accepts syntactically correct constructs without error. The tests do not check the shape of the generated parse tree. This issue is about adding such tests.
It will be somewhat involved to do this. First, a way is needed to represent the expected parse trees. Next, tests must be added that compare the generated parse trees with the expected ones.