Polish test_connection