Good test. I'd recommend using the functions in parser.tree.struct instead, in case we want to change the underlying data structure to something else.