test for the clean_and_validate_url() function