memcache implementation unit tests