Fix tests for Perl versions prior to 5.14