tests for caching with controllers