tests: improve GTK+ testing for GTK+3