Socket test fixes.