clean_urls middleware fully tested as standalone