Added a test for the race condition that can occur when loading metadata from an incomplete cache file