use task public ID in history entries
Fix up all unit tests