Test case for substitution groups.