Test that the serializer doesn't break on an exception