Improve testCoverage via FlattenTreeTest