fixed incorrect var reference in tests