Library of test functions for exception based Perl code