adding tests for pdf delivery