bug and test fixes

Just small fixes for correct work with api.
Modify skill_tree.t cause problems with "new line" character in xml and dump.