This test measures the amount of the hormone gastrin in your blood. You may need this test if you have recurrent peptic ulcers.