TRQ-2292: Properly calculate tasks count from nodes resource.
Add one more thing to a unit test.