added serialization tests