add test for datetime handling