fix connection tests