Add tests for Cache module