unit tests: checking the metadata setter