[Worker] Tiny fixes. Added test for worker