Should_fail tests for #9582: expected errors.