fix 5.8/5.10 test failures

Apparently in <5.12 I can't:
  $expected_linecount = split "\n", $foo
POD
v0.002002

  - Fix a test case on perl-5.8/5.10