Unit-tests for Cache class and adapters