Update the test for dangling node pointers in the events system.
Should be run when the debug event listener verification for nodes is switched on.