test: call setUrlString for memcached plugin only when it is required.

this commit prevents generating needless activities at the beginning of tests.