Tests for let-statement promotion