Add an error handling test for echo server.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>