FWIW, this can be achieved using `TestsUtil.generateTestGroups` and then `TestsUtil.generateGroupHierarchy`