This commit modifies a unit test such that it inspects a wrapped error rather than comparing errors by string.