Add tests for DateType.