Ah good catch. I factored out a new function.  `_getDeclaredChildrenForTest` is called outside of the `_expectAll` so that couldn't be consolidated.