Add download function to the test page.