added unittests for waitfortasks and waitforthreads
waitforqueues tests
documentation update