added new tests for tasks and barrier
barriers work
removed some comments