gastric function test explained