changed memcache to use memcached and added a test