fix testplans unittests and all pass

Following two issues are also fixed

- add missing XML version setting
- fix error testcase creation when importing from XML document exported
previously