[tests] port test scripts to new gi based pygobject