(tests) Move the MONITOR.do_update() calls between the events being detected and the checks on the event handlers