Beef up serialization tests.

Signed-off-by: Amit Gupta <agupta@pivotal.io>