Add test to avoid invalid XML bug
Fix XML reporter invalid XML bug