update serialization tests to consolidate/remove duplication

Try to consolidate tests and parametrize where it makes sense.

This diff is hard to read, sorry. :disappointed: