Web Inspector: add InspectorTest.expectException() and use it