I'm using a 13" mid-2012 Macbook Air (yes, it's an old machine:)). It's running MacOS Catalina, 10.15.6. It works fine (if sluggishly, no surprise there!), but I'm getting sudden battery shutdowns, and I'd like to use the hardware self-test to see how many cycles the battery has been through. It appears to me that I should be able to start the "Apple Hardware Test" on this machine by holding down 'd' during startup, but instead, holding down 'd' takes me to "Internet Recovery", which isn't what I want at all.
Any idea what's going on, and how to access Apple Hardware Test on this machine?
system_profiler SPPowerDataType