refactoring default cache test