unittests for worker

taste it !