Adding template_uri_check for delete and updated test coverage