Apply perlcritic to our test-cases too.

  This required some minor changes to the test-cases,
 mostly to avoid the bare-filehandle opening.