Add a test for an optional string field.