Add test coverage for tree parser