Ported event/dispatch test.