A drug test can detect the presence of certain medications and substances. The most common type of drug test is a urine test. Unfortunately, inaccurate results on drug tests can happen. For instance, a “false positive” is when a drug test shows the presence of a medication or substance that you aren't actually taking.