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

- refs #369, #233