Issue #1586: Rewrite the test for subclasses of Throwable following feedback from @FroMage.