Add test runner.

This is one additional commit on top of #67 for a command line test runner.