Fix test failures for dates.