Added test of loop-local variable declaration