added test for serialize/deserialize