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