Added check for memcached in tests