fixed Unit taests for dates.ts