Fix wrong connection test