Add some fixes, checking duplicate long urls, test and better paths