reorganized connection tests, now managing all connect disconnect operations internally