Tests that syntax errors are logged into console and doesn't cause browser crash.