glib2 test: remove needless code