Fix test ensuring that the date is set by default