Added tests for caching and cache rewriting

+ Cache get/set/has/bust
+ Manual cache rewriting (a la reviews)
+ Implicit cache rewriting (a la pagination)