added test case for date