Add tests using diff-pdf

Closes #38.