Added unit tests around BaseDownloadView. Introduced setup_view() test utility.