Add test for nested groups