Testing SchemaQueryAPI