Add option to ignore fragment when getting unique urls
Refactor tests