added test for double serialization