The test doesn't verify that the exceptions are reported to the browser console, but I manually checked that they are. Adding a test for that part could be pretty annoying.