Lead-acid battery and lithium battery universal tester