Updating unittest and using html_entity_decode to get html view in email