Add unit tests for mypdflib