Fixing constructor for DefaultDownloadManager used for testing, and adding unit tests for MavenMetadataGenerator