Test parse optgroups