[#14] Modified AST node generation for 'case' and list comprehension

- Improved tests for nesting level rule. 
- Added utils functions.