Test if metadata is preserverd
Fix serialized issue due to metadata serialization