fix xml mapping and tests, add readonly to field mappings