Fixed serialization unit tests.