fix test to include recursive and direct child counts in the analysis