Validation test for optgroup