Bring back some bugs to make memcached work

Add memcache test.sh for regressions