test: refactor test-beforeexit-event-exit.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data