battery quality control