I like the idea of https://github.com/aureliojargas/clitest - describe the tests for a command-line program in your documentation, and then be able to easily run those tests and verify if they passed. Sounds like something that could be useful for Org Babel too.