In test_cache_existing_metadata_file() we are now getting the correct path to the metadata files, thus making the test useful. This was the last missing test, the cache is now 100% covered (issue#999).