Attempt to fix UI tests that fail on Gtk

Related Issue: #37: Investigate why some UI tests fail on travis