test CommandFailedError exception handling