Unit tests to the rescue