Add unit test for event timeouts
Merge pull request #8993 from olliewalsh/eventtest

Another unit test for events