fixing test to use for-of not for-in
Fixing more for-in's that should be for-of