Check tree invariants during fourslash tests.