Add ::testSerialization method
Add version checking during deserialization