tests: call g_type_init() if needed