basic serializations without corner cases and a test