Smart Battery Testing