testing socket management