testing for socket session