Factory comprehensive testing of Lifepo4 batteries