test/metadata_download + fixes