tests: Do not use container api when gtk4 is used
tests: Do not use container api when gtk4 is used

GTK4 removed the Gtk.Container interface. All GTK4 widgets are now
iterable.

GNOME/pygobject,GNOME/pygobject,GNOME/pygobject