Makes source code smaller, and ensures we go through common initialization path (like the one that sets up XML unit test output ...)
[updated to new parser API] Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>