How the Test is Performed. There are several methods to test for H. pylori infection. Breath Test (Carbon Isotope-urea Breath Test, or UBT) Up to 2 weeks before the test, you need to stop taking antibiotics, bismuth medicines such as Pepto-Bismol, and proton pump inhibitors (PPIs).