tests (minor): Use var for global variables.