testing code for worker
Merge pull request #1 from aelkikhia/master

unittests for worker