DownloadPanelTemplate new helper function and tests