debug checks for flag tests