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.
This is not needed if the schema specifies that it is a required field...