Add more test cases
Fix cases with escaping, multiline and casing
Refactor unit tests