Clean up testDownload and updated implementation for DatabaseTestSupport.teardown