Fix date tests