Diagnostic test on industrial battery charger