For ENG-5865, use new discard method in fast serializer, fix test bugs.