Reproduce bug in window.onerror

When running on TravisCI, uncaught errors do not trigger the
`window.onerror` handler.

Prevent tests from all other applications from loading in order to more
completely isolate the behavior.