Verify task has failed state for invalid doctype