Tester for battery and charging system