testing on sockets