fixed syntax error in creating index statements; added a test for MetadataConnector
merging