Add tests for SchemaAnalyzer

Not complete yet.