glib-networking: add test

Closes #30581.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>