Fixes test cases for perl 5.10