Modified the way of printing xml result of the test.