debug output for test_connection()