Fix downloadmanager tests