xmlHandling unit tests

- fix some bugs in chatRefresh
- delete app folder