Added test for date formatting.