Fixing up loops
Added test case for `let` and `const`