Fix parsing of xml responses and get a bit of spec coverage