Add TestUtils; implement two tests for it.

Also, add a missing docstring in TreeEqualityTestCase.