[TASK] Refactored local-config:generate command

Changes:

* Wrap more data in CDATA to prevent XML errors
* Refactored unit test for command