new tests, grammar fix

- add tests for IF and LOOP statements
- fixed caseblock rule in grammar