Esophageal pH Test ?????

Hi everyone, I have rrms. I have been referred to have the above test done. Has anyone had this done ??? I am having this due to medication not helping acid problems. I have already had a endoscopy. I believe a tube goes up your nose, is this uncomfortable? I am also having a barium??? I would appreciate any help ? Thanks in advance.