fix connection test