Fixed failing metadata tests - changed metadata object type used in tests