* added test for cli connection error handling
* added test for cli query run and exit behavior