Adds a test to find if the cache is invalidated after flush and loaddata commands.