add unit test for schema validation