test: add another 'beforeExit' event test