Add tests for METADATA
Merge pull request #321 from aviks/tests

Tests for METADATA