Added Test for two providers.

Fix bug in MemoryCacheProvider.
Fix bug where CacheHandler wasn't checking if the request should be
cached.