In fact, you measure the internal resistance of the battery.
The test you use is fairly rudimentary, if not barbaric.
It's exactly the correct way to measure the DC resistance of the battery.
It is also dangerous in case of failure (short circuit) of the mosfet or of his driver. (risk of fire)
There is nothing dangerous designing power dissipating electronics when designed properly. Proper design includes means such as:
- slow blow fuse to protect from fire if something gets shorted (properly dimensioned, can protect from software lockup too)
- using so-called fusible resistors
- using non-resettable thermal fuse
These measures protect from fire just fine. Similar measures (such as a fuse) are needed for lower power analysis as well, as a short circuit can appear in a lower power device as well, so you have just showed us a typical case of false sense of security.
Another option is to measure the internal resistance by injecting a 10 khz current in the battery (same principle as the measurement of ESR of the capacitors).
This is completely wrong, as it ignores or misinterprets the ionic resistance of the battery, which, unlike in the capacitors, is very significant.
The result is 10kHz AC resistance, which was used in battery manufacturing quality control in the past before EIS analysis; but this AC thing still remains a nice forum myth that needs to be busted all the time. It has very limited significance, and no one has been able to show any practical use for the AC number for a battery system or device designer.
The fact that battery datasheets sometimes provide the 1kHz or 10kHz AC resistance number feeds the myth. But people who actually have to read the battery datasheets every day, quickly notice that lack of proper information is what we have to live with, and is not by any means limited to the lack of DC resistance quantification.
In batteries, there is surprisingly poor correlation between the AC and DC resistance. Two different batteries that have exactly the same voltage sag under the actual load may have the AC resistance differ by the factor of 10.
The actual application most likely needs the quantification of the DC parameters, because the actual load is behind wiring inductance and local elcap bypassing, causing any ESR measured at 1kHz or 10kHz to be irrelevant.
Hence, the 5 second load test is most likely just the right tool for the job.
Sure, the AC impedance test might be good enough for the application, and it may predict the End-Of-Life problem. But it's certainly not the easy (or more "correct" or "finer") solution, because not only it's more complex to implement, interpreting the results requires more knowledge about the battery chemistry, whereas the DC load directly models how the voltage sags under the actual load.