fix datetime test