memcache: make base testcase abstract