socket service unit test