1995 530it 208k miles

It started with a 1212 code. I replaced the O2 sensor but now the engine barely starts - rough idle for a few seconds then quits.
I connected 12v directly to the pump connector while it was still in the tank. It growled and cut in and out. I could see I removed it from the tank it runs ok. I want to confirm that its the fuel pump before I replace it.