tests use a tcp socket