test for task date validation