Fix tests with pygobject 3.8.1+