add tests for datetime