writing tests for varable workers feature. find periodical problem at waitForTask - not synchronized