Change test to work around issue with urlparse