refactoring variable names in tests to not clobber scoped variable with same name