Added test-case for invalideDates-constraint.