Unit tests are the first line of defence...