- Fix the tests for beforeunloadalert
- Remove exclusion of beforeunloadalert tests
- Add a couple new tests to improve coverage
Satisfy JSHint so it is happy again.