Fixed bug where the 'break' operator did not work. Added test case
with while-loop.