* client: fix comparison of CachedHeaderMetadata in tree_route * client: add regression test for tree_route