tests of the metadata setter: creation the logic and  parseJSON function which will be used for parssing the JSON request