fix up some redirection tests and the connection delegate