Update tests for cache factory