Added tests for some event dispatching edge cases.
Merge pull request #380 from Ms2ger/event-edge-cases

Added tests for some event dispatching edge cases; r=zcorpan