Added test methods for URL validation.