fix connectat in tests