Improved autoreconnect test with timeout and improved clarity.