fixing connection tests