It should return the expected error message for an invalid date

solution: