tests: avoid GPOINTER_TO_INT with GType (part 2)