Added remaining cache-related tests.

All 147 tests pass.