fix test disconnection