In California, the Department of Cannabis Control requires each batch of cannabis to be tested before it gets sold at a retail shop. Labs run these Certificate of Analysis (COA) tests. Not only are these tests to determine the THC, CBD, terpenes, and other cannabinoid content in the product, but they’re also testing to ensure that the cannabis is free from contaminants such as residual pesticides, mold, heavy metals, and other chemicals.