Move serialization tests to its own place