https://github.com/dotnet/corefx/issues/19119 removed [Serializable] from most Exceptions except Exception and AggregateException and made those exceptions' GetObjectData() throw. We should update our existing tests to accommodate the change and add tests for custom Exception.