[tests] update tests for caching