I'm not sure whether this is risky if we turn on parallel testing. To be safe, define `var` locally.