Add a test for exceptions
More power to debug mode, have it emit the requests and responses as text on STDOUT.