testing a battery