fix syntax of hash keys for older Perls
Merge pull request #5 from zmughal/master

Fix syntax in tests