Granted, but a renaming option is just that. A test will not only provide confidence, but also tell you if the code contains a logical bug.
That is a tautology: Of course a failing test shows you that the test failed. However, your test suite is severely flawed if the type system makes it redundant.