Added Metadata tests and docs