add unit tests for date
fixing e2e tests