fix: test task function name only if the received from workers