clarified While-Elsif behavior
fixed the syntax errors in the test suite