test for optgroups with collections