Replace option[selected] with option:checked Fix target validation when threshold destroyed Extract #fill_threshold in tests