Remove unused vars
Adding test for broken xml