Fixed test to remove Gtk dependency.