More tests on cache filters
Simplify writing of some cache's tests.