Added a test for date formatting