How to measure the leakage current of battery pack