Fix for cache when testing REST API