add functional tests for number of memcached threads