Add unit test for PDF file loaded as typed array