Added test for date field and date format in template