Reagent kits. The kits work by mixing the testing substance, known as a reagent, with a small sample of your pill, producing a chemical reaction that changes its colour. The colour is then compared against a chart to determine what is (or isn't) in the pill. Image via.