added a new command line testing tool, improved error formatting