fix test to work on perl < 5.12
Merge pull request #9 from haarg/master

Fixes test requiring perl 5.12