Does external exposure to certain drugs, like marijuana smoke, affect tests?

No. Labs look for both parent & metabolites of drug use. Metabolites can only be present through direct consumption or intake into the body.