Add test for text formatting of dates.