flag: split out SetFlagsFromEnvBad test; declare return error