Any Pap test can detect if you have a yeast infection or trichomoniasis, a common STD caused by a microscopic parasite. It can also diagnose inflammation, which can be triggered by anything that irritates your cervix -- an allergic reaction to spermicide or an IUD.