Whenever you have a misbehaving engine, put it on a test stand with a known good fuel system and run the engine. If it runs okay on the test stand then you know something is amiss in the aircraft. The fuel should not go back to the tank unless the tank is too low or there's a leak in the fuel system. I'd be using a test stand and nail the engine down to be 100% before doing anything else personally.