Add test for writing large strings