Throw proper exception on default JSONRPC proxy
Add DefaultJSONRPCProxyTest and improve test cases