t6036: Test index and worktree state, not just that merge fails