tests: work around a GLib issue