How to test whether the battery has power or current