Ensure that IghtConnection(fd) checks on fd work OK

This is related to the work done to improve and test the code
that checks for valid/invalid socket values.