Added test for serializing values of primitive fields.