better test cleanup and renaming a variable
style yo
missed a var name change