Revised tests for better browser compatibility

I ran the tests in a number of other browsers manually (as Testling is
currently not available right now) and noticed that IE9 wasn't happy
dispatching events to elements that weren't actually appended to the
body.

I updated the tests and can now be confident that the tests pass in IE9