Perl extension to test methods for warnings
