Fix tests as the dates are converted to dates not date times