unit test for date