Allow single test file run and make formunloadalert tests work again

- Allow you to specify which test file you want to run with make test pattern=foobar
- Fix the tests for beforeunloadalert
- Remove exclusion of beforeunloadalert tests
- Add a couple new tests to improve coverage