If you have proof the sobriety test was improperly given, it may be a defense to get the evidence suppressed. Miranda rights only attaches when you were interrogated and you gave a statement to the police. If not then Miranda does not protect you. You should get a criminal defense attorney to help you with these.