Removing unused code in tests of cache

This seems to have no effect.