Fixing date field tests