Add test code to download pdf