Adapt tests to work with older Gtk versions