Fix tests for browsers that have defaultPrevented bugs, or don't support it (Fixes #44)