test: add test for worker task function object