Test::Exception and dies_ok() are your friend here.
In reply to Re: Deliberate failure in Test::More by herveus in thread Deliberate failure in Test::More by macrobat