Add test for main.views.pdf_view.