[Sprint] Added a test for 3d plots in PDF backend

This failed at one point (see issue #1933), but it seems to work now. In fact, the proposed fix in that issue is now in `backend_pdf.py`.