Rewrite some tests for Cache\TestCase