testing socket connections