Fix invalidUri test, crappy url format should be supported