Fix syntax in tests

I noticed that some tests were failing on CPAN Testers for older versions of Perl. I guess I just like not having to dererefence hashrefs. :-)