Add a bunch of tests for de/serialization