added object comparison check to json2xml.spec.js