Move serialization tests to own test class.