Fix test issue for DateTime comparison