[gobject] Change gobject import to fix tests generation.