Fix autoreconnect test logic.