created test for applyMetaData method