more robust way of skipping when Test::Exception is not present