Unified code for `run()` tests. Tests for IE are using `CapturedExceptions.ie_10`.