tests: fix tests with glib 2.76
Fallout from glib@0ffe86a1
Our test suite runs with G_DEBUG=fatal-criticals and the last glib release upgraded some warnings which we explicitely ignored or captured to criticals, making the tests fail in various places.
Ignore those new criticals where needed.