adding socket error test