add serialization method to random test
add serialization method to random test

Reviewed By: yfeldblum, luciang

Differential Revision: D29451085

fbshipit-source-id: 1a14e71374615dbfc8acefef6a997a4f91ed4e08

facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift