Endoscope apparatus for testing gastrointestinal