tests: Fix for older pygi (3.2)