Add request cache mock for tests.
Add tests.