tests for invalid date string