Deduplicate PDF checking.
whitespace
Note that you don't want to overwrite existing test data.
Test::More already tells you the values if they differ.