Working principle of battery pack tester