If you are asking how to "beat" the test, it would be unethical for any physician to give you advice on that.
The way to pass ANY drug test is to NOT use that drug. Moreover, it is far more important to actually stop using tobacco products because they remain the number one preventible cause of death
in the western world (and increasingly in developing nations). Stop BEFORE cancer