fix missing delete tasks count assertion