add test for optgroups with callback