Adding the improvements for URL validation and tests for them.