forms: fixed optgroup tests.