For testing code with exceptions (instead of Test::Exception) see Test::Fatal.