Add tests for TaskUtils and Errors.