A 45 year old man presents with burning epigastric pain relieved by food and recurring for several weeks. He takes no medications and has no alarm features such as weight loss, dysphagia or anaemia. He does not use NSAIDs and is H pylori serology positive. According to a test and treat strategy, what is the most appropriate management?