some serialization, some probably buggy arbitrary, and some testing of serialization