unit tests: worker.js