test($automation): try to avoid event handler race condition #4