added serialization test