How to self-test the attenuation of new energy batteries