Added tests for some event dispatching edge cases.

These would have failed in Servo's initial implementation.