test for date functions