restore SchemaLoader and test class