gio/tests/socket.c: clean up a test case a bit