Test coverage for sockets