add test for date