added testcase for function getComponentmetaData