Fix invalid use of glib loop in unit tests