Fix bunch of regressions on TestSocket. Catch some spurious errors (no display for irrelevant stuff).