schema validation and tests