Add test for convertContent helper function