Wrote MaterialManager.add_metadatum() test.