Skip some tests if GTK can't be initialised
A few of the tests need GTK to work, but GTK won't initialise if a X or Wayland environment isn't found. This isn't uncommon in build infrastructures, so if GTK initialisation fails skip the test instead of failing.