test-gio: make it optionally take a URL.