sock server test implemenation