fix bug when no properties in the class
update test
add cross test xsd