A test is done by taking a small scraping from a pill and placing it in the reagent testing liquid or dropping the reagent onto the scraping. The liquid will change colour when reacting with different chemicals to indicate the presence of certain substances.
Testing with a reagent kit does not indicate the pill is safe. While the testing process does show some particular substances are present, it may not show a harmful substance that is also present and unaccounted for by the testing process. Some substances that cause strong colour changes can also mask the presence of other substances that cause weaker colour changes. Thin layer chromatography is used with reagent testing to separate substances before testing and prevent this "masking" effect.
Ehrlich reagent can only detect drugs with an indole moiety, but this is useful because drugs from the NBOMe class do not have an indole and are often sold as LSD which does. The Ehrlich reagent has an additional benefit over other reagents in that it does not react with the paper on which LSD is often distributed.
Reagent tests are often limited to target specific chemicals, and when these substances are mis-sold it is usually by substitution of a different substance in the same chemical family, rendering the test unuseful for consumers. However, reagent tests for chemicals families also exist.
Lacing agents are often used to cut the weight of substances. Some of the most available and non-suspicious cutting agents are reducing sugars: The common dietary monosaccharides galactose, glucose and fructose are all reducing sugars. Sugar is the generic name for sucrose, a disaccharide composed of glucose and fructose.