Fix date-related test failures