Added unit test for pdf to image functions.