Make TestRunner work on IPv6
Move patching testsuite to core
Get rid of compile warnings
close the client on stop