tests: cpp: clear all cache entries in test_cache_delete()