The test involves exposing different strains of Salmonella typhimurium to the chemical in question. These strains have mutations that make them unable to produce histidine, an essential amino acid. When exposed to a mutagen, the bacteria undergo reverse mutations that allow them to produce histidine again, enabling growth on a histidine-free medium. The frequency of these reverse mutations indicates the mutagenic potential of the chemical.