Socket testing