testing serialization of map