testing the session before establishing a channel