Which test is considered the gold standard for diagnosing Helicobacter pylori infection in a patient who recently stopped taking proton pump inhibitors?