Added test cases for date and datetime fields