Tests were failing because git worktree add -b branch worktree origin/main requires origin/main to exist. Now all test setups create main branch after initial commit so cloned repos have the expected branch.