test for cache classes rather than environment