Lithium battery capacity testing technology