test the logging of errors in jsonrpc handlers