An 80-year-old man is evaluated for gastrointestinal bleeding. His medical history is notable for a 3-month history of intermittent melena that resulted in a hospitalization 2 days ago, during which he has required fluid resuscitation and erythrocyte transfusions. Upper endoscopy and colonoscopy were normal.

On physical examination, temperature is 37.0 °C (98.6 °F), blood pressure is 135/80 mm Hg, pulse rate is 80/min, and respiration rate is 18/min. Abdominal examination findings are normal.

Laboratory studies show a hemoglobin level of 8.2 g/dL (82 g/L). Capsule endoscopy shows fresh blood in the proximal jejunum and several angiodysplasias.

Which of the following is the most appropriate test to perform next?