Fix format-date test