Add test to ensure that error handler gets triggered
Attempt to fix randomly failing test in capture.html
Fix tests for IE10