tests: Various minor leak fixes in the GIO tests