Extended unit tests to wait for the final results in 2 different ways

Using i) manual reset events and ii) a task