Help, car keeps dieing

So battery tested good. How do u test the voltage regulator.