Updated test for rpc module
Added tests for jsonrpc