Added unit test for Metadata entity