allow testing for final tree against target tree
fix dump of patched tree