Refactor.
Preparing cache tests.