clear flag test