Fix bugs & add source locations in xml reports