fixed test for different urlparse behaviour
fixed test for python 2.5