Fix test for shortening invalid url