MDL-29506 forum: Add tests for encode_content_links