cli test

This is ugly, but working. I want to clean it before merging, but I'm not sure how to get rid of the case analysis.
Yeah, I'm thinking we should not try to print "all tests pass" but document it for the future.