More code cleaning.
Add a successful error calculation test.