iirc my cheap decommisioned Contronetix X800 has battery test function by briefly press the power (soft) button, to turn off is long press, that was the annoying thing. currently in service is the KOSS Centron 1200VA (both local brand (no or not recognized brand)), its hard button, so switching off is instant i like it but, no battery test button anymore, battery test is using software through LAN port + some other features like auto turning off PC etc, but i wont bother to setup the LAN and the SW i dont care and dont need those, i only need to save my work and then hibernate during power outage. i seldomly leave my PC unattended except if i want to torrent GBs of data, but that was when my ISP is slow, now it only took few minutes, otherwise torrent will auto resume anyway. running heavy simulation is like once in every 10 years so its moot, good simulator should auto resume as well, so does firefox, thumbs up. so battery test function not only for expensive brand model, its also available in cheap model you just have to look for it during window shopping. since i dont have proper test battery functionality, i do as Wuerstchenhund said, simulate power outage by pulling the UPS plug, if PC survive within 5 minutes, battery is good. ymmv.
ps: and my previous UPSes are so compact that everything sit next to each other, so transformer heat will spread to anything inside including battery and pcb, but i havent experienced a single cooked battery. modding them to use external 40-60AH car battery is easy anyway. my current KOSS i have to put it on its side since that how the battery inside will sit up right, i experienced premature battery dead before this, but its probably due to me purchase the expired battery from a bad shop, good battery should be able to lay on its side, but this time i make sure they are up right, just in case. and if your UPS has 2 batteries, i think its advisable to make sure they are closely matched in new condition. that maybe one of the reason my premature dead battery experience, only 1 battery went bad, the other one still okaish, but i replaced both of them with fully charged new batteries, now its been a while everything looking good.