fixed testcases for #444, by default the longest possible url is generated

- refs #444, #308