fix on_connection_made test (thanks @jerith)