Eliminate warnings in tests as reported in #1313
clean up some more code to satisfy the current perlcritic configuration
revert one of the perlcritic related fixes as this broke some tests
Merge pull request #1317 from szabgab/szabgab/perl-critic

clean up some more code to satisfy the current perlcritic configuration
Merge pull request #1314 from szabgab/szabgab/issue-1313

Eliminate warnings in tests as reported in #1313