Added test to check if URL is valid