fixing sockets tests