Nest testcase elements properly under testgroups