Add test cases for string rendering.