Fuel pump problems

I had a buddies jeep that kept cutting out at random. After verifying the pump would work after it died by jumping it I found one of the connectors for the relay was loose. As mentioned I would hook up a light to it and drive around to see if the power supply is good and constant.