Test for pdf writer