TMSS-154: Fix in unitttest, taking 'history' into account and determine the total of subtasks objects in stead of hardcoded number