t/helper: merge test-dump-cache-tree into test-tool