Fix integration tests for PDF previews