Add test for memcached rewriting hosts, keeping ports