Modified print statment in test_url_redirect to handle NoneType