Added platform independent serialization test.