testing worker directly to avoid race conditions