Add test for `tree`