Added test case for serializing one struct with another struct as a field.