Fix serialization tests.