test: switch thread worker to ESM