Add basic support for machine-readable output.

Adjust the unit tests to consider messages that were not formerly
displayed.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Add tests for machine-readable output.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>