Ported event/dispatch test.
Merge pull request #1576 from mbebenita/avx

Ported event/dispatch test.