Use serialization code generator for test cases.