changed escape for newline from "\n" to "\e"

- also fixed some tests
- cosmetic changes in cli_parser