"...threw flames out of the breaker..."
Sounds exciting, glad you're okay.
I wonder if disconnecting the neutral causes some imbalance (drifting common) within the internal power supply. It probably draws power from both hot legs for safety reasons & redundancy. Perhaps it uses the old series capacitor extraction technique (times two) and one of the caps was damaged due to the disconnected neutral (too much voltage due to the drifting common) and the cap shorted out. Then you pressed the Test button and it put too much power into some part of the circuit and it blew up.
If I were you, I'd ask manufacturer if this is a known issue (disconnecting the neutral and then pressing the Test button). If they deny it is an issue and you're still interested, then you could try to replicate the incident (perhaps using a 4-foot long wooden stick to press the Test button this time...).
If it is a repeatable failure mode and they're unaware of it, then you'll be doing a service to everyone to draw attention to it. If true, then they should (at the very least) include a warning sticker for the panel.
Better yet, redesign the internal PS circuit.
Then again, maybe it was just a one-off failure.