Fix tests for browsers that don't support defaultPrevented (Fixes #44)