fix config cache refactor update unit test