updates tests and fixes date validation for nil dates