Added serialization test