Added unit test for single-element loop bug.
Added missing file
Fixed unit test according to language specification.
Fixed loops with a single element.