The test was assuming that gtk_text_buffer_paste_clipboard is synchronous, which is no longer the case.