unit tests for schema validation