Revert "[gobject] Change gobject import to fix tests generation."

This reverts commit cd7224dfdda3c532028bbef37fd6813af7b9a4a0.