test battery api availibility