added test case for schema generation.