added unit test for socket sever