I haven't added any tests yet as the wine/dlls/ws2_32/tests/sock.c fiile is rather daunting.
However it does fix a signficant bug - I forgot to translate the filename in the sun_path field from a Windows name to a Unix name. This happened to work by accident with my server which was setting a relative path here, but as soon as I used an absolute path for the socket it revealed the bug in my Wine patch.
Rich.