[test] Added test for the `timeout` event