Test error deserialization