You're describing a fancy field sobriety test. There's a reason why those who fail field sobriety tests for alcohol are then asked for a breath sample (or when they refuse, a blood test)
A criminal defense lawyer would tell their clients to say in court they intentionally failed the test. (Burden of proof still lies with the prosecution) You can't be convicted for failing a test. You can only be convicted of being under the influence.