Add tests for download_pin view.