sync test code with tp-glib next HEAD