Improvements to Metadata, AD User Import and Bug Fixing

SD-945, SD-1051, SD-668

There were some repetitive attributes in metadata_schema.
Added behave tests for testing metadata.