Add test for socket family error