Added test to check for invalid url