test some more url generation, fix a bug