test for failing socket connection