tests for tree format output