Ported memcache tests.