Add a test for format_content