Trying to apply my "embedded unit tests" idea to other real-world examples