How to test overcharge and over discharge of lithium battery