Fix test failing because of change in behavior of dateutil module