Unit tests saved the day.