Test data serialization