Fuel Pump Test
The fuel pump can cause several different conditions to your engine. I was traveling and when I would stop after a couple hours of driving, shut off the engine and when restarting, it would act as if the TBI was not getting any fuel.
After a sitting a while longer would re start ok. When the pump was on it’s last leg, the engine would hesitate at idle and when accelerating it would buck until I was rolling again. Once it was up at cruising speed it would run fine. When I came to a stop it would idle fine, but upon accelerating again it would run rough until cruising speed again. I would have to feather the throttle to get it running.

To test the fuel pressure you will need to instal a fuel pressure gauge.

This is done with an adapter that goes in line where the fuel filter is. Remove the fuel filter and place the test adapter in place of the filter. If you leave the filter in line and attach the adapter after the fuel filter, you could get a false reading if the filter was clogged.
On this model the fuel filter is on the passenger side on the frame rail just in front of the rear wheels.

There are different types of adapters, some go on after the filter and others go in place of the filter. The running pressure on my motorhome is about 35 psi. It was running at 20 psi before I replaced it and the engine was running rough and would stall when you put it in gear.

There are several sites that state the your transmission converter could be locking up and causing the engine to stall, but before condemning your transmission, you need to check everything. I did not know that the fuel pump was causing this condition until I did a fuel pump pressure test.