Move expect into Data.Serialize, to avoid build errors