Cleanup of JCacheTest

Added a check for presence of memcache server
Refactored data providers