Add a test for the ancestors flag to tree_info