Cache service, factory and uni tests.