A Clostridium Difficile (C. diff) Toxin Detection A & B test is a laboratory test used to diagnose Clostridium difficile infection, which can cause severe diarrhea and inflammation of the colon. The test specifically looks for the presence of toxins A and B, produced by the C. diff bacteria, in a stool sample. These toxins are the primary cause of the illness.