test sockets