add test case for socket client/server