[SPEC] Refactored delete_directory spec to check if it's caching collections