Added test case for cache api of EHCache implementation.