Fix broken build.

0c29d35a broke test the tree detail page. This commit simply guards the
two failing tests.