add undef return test case
fixed #2, fixed #3, fix nested exception less than Perl version 5.14